//
//  SGTypeViewController.m
//  Fengshui
//
//  Created by are on 13-5-22.
//
//

#import "SGTypeViewController.h"
#import "QiguaViewController.h"
@interface SGTypeViewController ()

@end

@implementation SGTypeViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initializations
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}
-(IBAction)btnAction:(id)sender
{
    UIButton *button = (UIButton *)sender;
    QiguaViewController *viewController = [[QiguaViewController alloc] initWithNibName:@"QiguaViewController" bundle:nil];
    viewController.typeString = [NSString stringWithFormat:@"%d",button.tag];
    [self.navigationController pushViewController:viewController animated:YES];
    [viewController release];

}
- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
